#pragma once

#include "../Position.h"
#include "CADCommand.h"

// CCreateRectCmd command target

class CCreateRectCmd : public CCADCommand
{
	DECLARE_DYNAMIC(CCreateRectCmd)
public:
	CCreateRectCmd();
	virtual ~CCreateRectCmd();

	int GetType();
	int	OnLButtonDown(CDC* pDC, UINT nFlags, const CPosition& pos);
	int	OnMouseMove(CDC* pDC, UINT nFlags, const CPosition& pos);
	int	OnRButtonDown(CDC* pDC, UINT nFlags, const CPosition& pos);

	int	Cancel(CDC* pDC);

private:
	CPosition m_LeftTop;
	CPosition m_RightBottom;
};


